package com.lyf.scm.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * description:其他渠道计划_目标与销售计划差异对应枚举
 *
 * @author: huangtao
 * @data: 2020/7/31
 */
public enum SalesPlanOtherDifferinEnum {

    /**
     * 销售目标（金额）
     */
    //SALES_TARGET_AMOUNT("salesTargetAmount", "销售目标额"),
    /**
     * 销售计划确认量（金额）
     */
    SALES_CONFIRM_AMOUNT("salesConfirmAmount", "销售计划确认额"),
    /**
     * 实际销售（金额）
     */
    ACTUAL_SALES_AMOUNT("actualSalesAmount", "实际销售额"),
    /**
     * 实际销售（数量）
     */
    ACTUAL_SALES_QTY("actualSalesQty", "实际销售量"),
    /**
     * 销售计划确认量（数量）
     */
    SALES_CONFIRM_QTY("salesConfirmQty", "销售计划确认量"),

    /**
     * 目标达成率（金额）
     */
    //TARGET_ACRATE_AMOUNT("targetAcrateAmount","目标金额达成率"),

    /**
     * 实际收货量（数量）
     */
    ACTUAL_RECEIVED_QTY("actualReceivedQty","实际收货量");

    private String code;
    private String desc;

    /**
     * 指标的枚举顺序为excel导出时候指标的顺序
     *
     * @param
     * @return {@link List <String>}
     **/
    public static List<String> getAllTargetsDesc() {
        List<String> targetsDesc = new ArrayList<>();
        for (SalesPlanOtherDifferinEnum item : SalesPlanOtherDifferinEnum.values()) {
            targetsDesc.add(item.getDesc());
        }
        return targetsDesc;
    }

    SalesPlanOtherDifferinEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
